package vns.shared;

import java.io.Serializable;

import com.google.appengine.api.datastore.Key;

@SuppressWarnings("serial")
public class RuleParamDTO implements Serializable {
	private Key id;
	private String ruleID;
	private String reportID; // dung cho report

	private String varName; // ten bien
	private String propertyPath;
	private String type; // pramtype

	private String name; // report: ten cot
	private int weight; // report: thu tu cot

	public RuleParamDTO() {
	}

	public RuleParamDTO(String ruleID, String reportID,
			String type, String varname, String callname, String propertypath,
			int weight) {
		setInfo(ruleID, reportID, type, varname, callname, propertypath,
				weight);
	}

	public void setInfo(String ruleID, String reportID, String type,
			String varname, String callname, String propertypath, int weight) {
		this.ruleID = ruleID;
		this.reportID = reportID;
		this.type = type;
		this.varName = varname;
		this.propertyPath = propertypath;
		this.name = callname;
		this.weight = weight;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public Key getId() {
		return id;
	}

	public void setRuleID(String ruleID) {
		this.ruleID = ruleID;
	}

	public String getRuleID() {
		return ruleID;
	}

	public void setReportID(String reportID) {
		this.reportID = reportID;
	}

	public String getReportID() {
		return reportID;
	}

	public void setVarName(String varName) {
		this.varName = varName;
	}

	public String getVarName() {
		return varName;
	}

	public void setPropertyPath(String propertyPath) {
		this.propertyPath = propertyPath;
	}

	public String getPropertyPath() {
		return propertyPath;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public int getWeight() {
		return weight;
	}
}
